package 行为型模式.责任链模式;

/**
 * @Description 部门经理类 具体处理者
 * @Author shallow
 * @Date 2023/3/8 10:52
 */

public class GeneralManager extends Handler{
    public GeneralManager() {
        super(Handler.NUM_THREE, Handler.NUM_SEVEN);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName()+"请假"+leave.getNum()+"天，"+leave.getContent());
        System.out.println("总经理审批:同意");
    }
}
